home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 October: Technology Seed / ADC Seed CD - October 1999.toast / FireWire / FireWire_2.1_SDK_DR3 / Source / OpenTransport / MakeFile < prev   
Encoding:
Makefile  |  1999-05-17  |  7.1 KB  |  227 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for Open Transport networking driver sample
  5. #                code.
  6. #
  7. #    Version:    1.0
  8. #
  9. #    Written by:    Erik Staats
  10. #
  11. #    Copyright:    © 1996-1998 by Apple Computer, Inc., all rights reserved.
  12. #
  13. #    File Ownership:
  14. #
  15. #        DRI:                Eric W. Anderson
  16. #
  17. #        Other Contact:        Jay Lloyd
  18. #
  19. #        Technology:            FireWire
  20. #
  21. #    Writers:
  22. #
  23. #        (DCB)    Clinton Bauder
  24. #        (jkl)    Jay Lloyd
  25. #
  26. #    Change History (most recent first):
  27. #
  28. #      <FW39>    12/19/98    DCB        More cleanup for SDK.
  29. #      <FW38>     7/29/98    jkl        Updated to use latest Interfaces&Libraries. Bumped version.
  30. #      <FW37>     8/29/97    KDM        Bumped version to 1.0.1a6. Piece of Blaze 1.1a6
  31. #      <FW36>     6/19/97    GG        Bumped version to 1.0.1a5.
  32. #      <FW35>     5/29/97    GG        Bumped version to 1.01a4.
  33. #      <FW34>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  34. #      <FW33>     4/29/97    GG        Bumped version to 1.0.1a2.
  35. #      <FW32>     4/10/97    GG        Bumped version to 1.0.1d1.
  36. #      <FW31>     3/27/97    GG        Bumped version to 1.0 GM.
  37. #      <FW30>     3/19/97    GG        Bumped version to 1.0b3.
  38. #      <FW29>     3/12/97    GG        Bumped version to 1.0b2.
  39. #      <FW28>     2/19/97    GG        Bumped version to 1.0a3.
  40. #      <FW27>     2/11/97    GG        Bumped copyright to 1997.
  41. #      <FW26>     2/11/97    GG        Bumped version to 1.0a2.
  42. #      <FW25>      2/4/97    GG        
  43. #      <FW24>      2/4/97    GG        Bumped version to 1.0d24.
  44. #      <FW23>     1/28/97    GG        Bumped version to 1.0d23.
  45. #      <FW22>     1/27/97    ES        Changed protocol driver file type to 'ndrv'. Fixes bug #1621930.
  46. #      <FW21>     1/21/97    GG        Bumped version to 1.0d22.
  47. #      <FW20>     1/16/97    ES        Changed FWOTDriver file type to 'fwpd'.
  48. #      <FW19>      1/3/97    ES        Removed OTVDevice from build.
  49. #      <FW18>      1/2/97    GG        Bumped Version to 1.0d21.
  50. #      <FW17>    12/20/96    GG        Bumped Version to 1.0d20.
  51. #      <FW16>     12/6/96    GG        Bumped version to 1.0d19.
  52. #      <FW15>    11/14/96    GG        Bumped version to 1.0d18.
  53. #      <FW14>    10/31/96    ES        Bumped version to 1.0d17.
  54. #      <FW13>     10/2/96    ES        Bumped version to 1.0d15.
  55. #      <FW12>     9/12/96    ES        Bumped version to 1.0d14.
  56. #      <FW11>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  57. #                                    ETO #20 and forward.
  58. #      <FW10>     7/11/96    ES        Bumped version to 1.0d13.
  59. #       <FW9>     7/11/96    ES        Bumped version to 1.0d12.
  60. #       <FW8>     6/24/96    ES        Bumped version to 1.0d11.
  61. #       <FW7>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  62. #       <FW6>     5/30/96    ES        Bumped version to 1.0d10.
  63. #       <FW5>     4/19/96    ES        Updated to version 1.0d9.
  64. #       <FW4>     4/15/96    ES        Added some dependencies to FWOTDriver.
  65. #       <FW3>     3/29/96    ES        Bumped version to 1.0d8.
  66. #       <FW2>     3/28/96    ES        Fill in contains and written by fields.
  67. #       <FW1>     3/28/96    ES        first checked in
  68. #
  69. #
  70.  
  71. ################################################################################
  72. #
  73. # Define some directories
  74. #
  75.  
  76. FWOTDriverRootDir            =    :
  77.  
  78. FWSampleDir                    =    {FWOTDriverRootDir}::
  79.  
  80. FWInterfacesDir                =    {FWSampleDir}Interfaces:
  81.  
  82. FWLibrariesDir                =    {FWSampleDir}Libraries:
  83. OTLibrariesDir                =    {FWOTDriverRootDir}Libraries:
  84.  
  85. FWOTDriverSourceDir            =    {FWOTDriverRootDir}FWOTDriver:
  86.  
  87. BuildResultsDir                =    {FWSampleDir}BuildResults:
  88. ObjectsDir                    =    {BuildResultsDir}Objects:
  89. ExtensionsDir                =    {BuildResultsDir}Extensions:
  90.  
  91. ################################################################################
  92. #
  93. # Define version info
  94. #
  95.  
  96. FWVersion                    =    1
  97. FWRevision                    =    0
  98. FWBuildStage                =    alpha
  99. FWBuildNumber                =    7
  100. FWShortVersionString        =    '"1.0.1a7"'
  101. FWLongVersionString            =    '"1.0.1a7, © 1996-1998 Apple Computer, Inc."'
  102.  
  103.  
  104. ################################################################################
  105. #
  106. # Define stuff for PowerPC compilation
  107. #
  108.  
  109. MrCOptions                    =    -opt speed                                    ∂
  110.                                 -w 2,7,35                                    ∂
  111.                                 -d TRUE=1                                    ∂
  112.                                 -d FALSE=0                                    ∂
  113.                                 -i "{FWInterfacesDir}"                        ∂
  114.                                 -i "{CIncludes}"
  115.  
  116. CPPCOptions                    =    {MrCOptions}
  117.  
  118. CPPC                        =    MrC
  119.  
  120. LinkPPC                        =    PPCLink
  121.  
  122.  
  123. ################################################################################
  124. #
  125. # Define stuff for rez
  126. #
  127.  
  128. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  129.                                 -d FWRevision={FWRevision}                    ∂
  130.                                 -d FWBuildStage={FWBuildStage}                ∂
  131.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  132.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  133.                                 -d FWLongVersionString={FWLongVersionString} ∂
  134.                                 -d ETO_Build=1
  135.  
  136.  
  137. ################################################################################
  138. #
  139. # Open Transport driver
  140. #
  141.  
  142. "{ObjectsDir}DLPIRoutines.c.o"    ƒ                                            ∂
  143.                             "{FWOTDriverSourceDir}DLPIRoutines.c"            ∂
  144.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  145.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  146.                             "{FWOTDriverSourceDir}HWSpecific.h"
  147.     {CPPC}                                                                    ∂
  148.         "{FWOTDriverSourceDir}DLPIRoutines.c"                                 ∂
  149.         -i "{FWOTDriverSourceDir}"                                            ∂
  150.         {CPPCOptions}                                                        ∂
  151.         -o {Targ}
  152.  
  153. "{ObjectsDir}EntryPoints.c.o"    ƒ                                            ∂
  154.                             "{FWOTDriverSourceDir}EntryPoints.c"            ∂
  155.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  156.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  157.                             "{FWOTDriverSourceDir}HWSpecific.h"
  158.     {CPPC}                                                                    ∂
  159.         "{FWOTDriverSourceDir}EntryPoints.c"                                 ∂
  160.         -i "{FWOTDriverSourceDir}"                                            ∂
  161.         {CPPCOptions}                                                        ∂
  162.         -o {Targ}
  163.  
  164. "{ObjectsDir}HWSpecific.c.o"    ƒ                                            ∂
  165.                             "{FWOTDriverSourceDir}HWSpecific.c"                ∂
  166.                             "{FWOTDriverSourceDir}DLPIRoutines.h"            ∂
  167.                             "{FWOTDriverSourceDir}EntryPoints.h"            ∂
  168.                             "{FWOTDriverSourceDir}HWSpecific.h"
  169.     {CPPC}                                                                    ∂
  170.         "{FWOTDriverSourceDir}HWSpecific.c"                                 ∂
  171.         -i "{FWOTDriverSourceDir}"                                            ∂
  172.         {CPPCOptions}                                                        ∂
  173.         -o {Targ}
  174.  
  175. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  176.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  177.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  178.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  179.                             "{FWOTDriverSourceDir}FWOTDriver.exp"
  180.     {LinkPPC}                                                                ∂
  181.         -t 'ndrv'                                                            ∂
  182.         -c 'fw  '                                                            ∂
  183.         -xm sharedlibrary                                                    ∂
  184.         -w                                                                     ∂
  185.         -@export "{FWOTDriverSourceDir}FWOTDriver.exp"                        ∂
  186.         -init InitCFMRoutine                                                ∂
  187.         -term TerminateCFMRoutine                                            ∂
  188.         "{ObjectsDir}DLPIRoutines.c.o"                                        ∂
  189.         "{ObjectsDir}EntryPoints.c.o"                                        ∂
  190.         "{ObjectsDir}HWSpecific.c.o"                                        ∂
  191.         "{SharedLibraries}InterfaceLib"                                        ∂
  192.         "{SharedLibraries}StdCLib"                                            ∂
  193.         "{SharedLibraries}NameRegistryLib"                                    ∂
  194.         "{SharedLibraries}DriverServicesLib"                                ∂
  195.         "{SharedLibraries}PCILib"                                            ∂
  196.         "{FWLibrariesDir}FWServicesLib"                                        ∂
  197.         "{SharedLibraries}OpenTptModuleLib"                                    ∂
  198.         "{PPCLibraries}PPCCRuntime.o"                                        ∂
  199.          -o {Targ}
  200.  
  201. "{ExtensionsDir}FWOTDriver"    ƒƒ                                                ∂
  202.                             "{ObjectsDir}DLPIRoutines.c.o"                    ∂
  203.                             "{ObjectsDir}EntryPoints.c.o"                    ∂
  204.                             "{ObjectsDir}HWSpecific.c.o"                    ∂
  205.                             "{FWOTDriverSourceDir}FWOTDriver.exp"            ∂
  206.                             "{FWOTDriverSourceDir}FWOTDriver.r"                ∂
  207.                             "{FWOTDriverRootDir}MakeFile"
  208.     Rez                                                                        ∂
  209.         {RezOptions}                                                        ∂
  210.         "{FWOTDriverSourceDir}FWOTDriver.r"                                    ∂
  211.         -a                                                                    ∂
  212.         -o {Targ}
  213.  
  214. "{ExtensionsDir}FWOTDriverLib"    ƒƒ                                            ∂
  215.                             "{ExtensionsDir}FWOTDriver"
  216.     Duplicate                                                                ∂
  217.         -y                                                                    ∂
  218.         "{ExtensionsDir}FWOTDriver"                                            ∂
  219.         {Targ}
  220.     SetFile                                                                    ∂
  221.         -t 'shlb'                                                            ∂
  222.         {Targ}
  223.  
  224. FWOTDriver    ƒ                                                                ∂
  225.                         "{ExtensionsDir}FWOTDriver"                            ∂
  226.                         "{ExtensionsDir}FWOTDriverLib"
  227.